// https://nuxt.com/docs/api/configuration/nuxt-config
// @ts-ignore
export default defineNuxtConfig({
    devtools: {enabled: false},
    app: {
        head: {
            charset: 'utf-8',
            viewport: 'width=device-width, initial-scale=1',
        },
        rootId: 'star__theme'
    },
    pages: true,
    css: ["@/static/css/index.css","@/assets/theme/font/fonts.css"],
    modules: ['@pinia/nuxt', '@element-plus/nuxt'],
    plugins: [
        '~/plugins/arco.client.ts',
        '~/plugins/fancybox.client.ts',
        '~/plugins/pinia.ts',
        '~/plugins/51la.client.ts'
    ],
    elementPlus: {},
    nitro:{
        devProxy:{
            '/api': {
                target: 'https://nuxt.fqxk.com.cn/nuxt',
                // target: 'http://127.0.0.1:8080/nuxt',
                changeOrigin: true,
                //@ts-ignore
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
})
